﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="ItemCats.aspx.cs" Inherits="TaobaoERP.Views.Settings.ItemCats" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link rel="stylesheet" type="text/css" href="/content/PageCss/white/css/pagination.css" />

    <script src="../../Scripts/jquery.cookie-min.js" type="text/javascript"></script>

    <script src="../../Scripts/pagination.js" type="text/javascript"></script>

    <script language="javascript">
$(document).ready(
	function() {
	    //完全模式
        $("#pager").pagination({
        totalRecord: <%=ViewData["totail"] %>,
        proxyUrl: '/Settings/ListItemCats/<%=ViewData["ParentID"]  %>', 
	    showMode: 'full' ,
	    onSetData:function(row,n){
	    	row.find("#ID").text(n.ID);
	        row.find("#ParentID").html("<a href=/Settings/ItemCats/"+n.ParentID+">"+n.ParentID+"</a>");
	        if (n.IsParent)
	        row.find("#Name").html("<a href=/Settings/ItemCats/"+n.ID+">"+n.Name+"</a>");
	        else
	        row.find("#Name").html(n.Name);
	        row.find("#IsParent").text(n.IsParent);
	     }
	    });
	})
    </script>

    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="small">
        <tr>
            <td style="height: 2px">
            </td>
        </tr>
        <tr>
            <td style="padding-left: 10px; padding-right: 50px" class="moduleName" nowrap>
                宝贝管理 >
                <%=Html.ActionLink("商品管理","Index","Prodcut") %>
            </td>
            <td width="100%" nowrap>
                <table border="0" cellspacing="0" cellpadding="5">
                    <tr>
                        <td style="padding-right: 0px; padding-left: 10px;">
                            <a href="Product/ProductAdd/?KeepThis=true&TB_iframe=true&height=500&width=800" title="新建宝贝"
                                class="thickbox">
                                <img src="/Content/Images/btnL3Add.gif" border="0" alt="添加宝贝" id="ImageAddProduct" />
                            </a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 2px">
            </td>
        </tr>
    </table>
    <!-- PUBLIC CONTENTS STARTS-->
    <div id="usual1" class="usual">
        <table width="98%" cellspacing="0" cellpadding="0" border="0" align="center">
            <tbody>
                <tr>
                    <td colspan="3" class="small">
                        提示：通过查看范围可查看本人或下属的记录，点击下方的视图可查看符合相应条件的记录，点击上方的+号图标可增加新的记录，点击放大镜图标可查找记录。
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <img src="/Content/Images/showPanelTopLeft.gif" />
                    </td>
                    <td width="100%" valign="top" style="padding: 10px;" class="showPanelBg">
                        <div style="width: 100%; position: relative;" class="small" id="ListViewContents">
                            <table width="100%" cellspacing="1" cellpadding="0" border="0" class="lvtBg">
                                <tbody>
                                    <tr>
                                        <td>
                                            <!-- List View's Buttons and Filters starts -->
                                            <table width="100%" cellspacing="0" cellpadding="2" border="0" class="small">
                                                <tbody>
                                                    <tr>
                                                        <!-- Buttons -->
                                                        <td nowrap="" align="left" style="padding-right: 20px;">
                                                            查看范围:
                                                            <select class="small" id="viewscope" name="viewscope">
                                                                <option value="all_to_me">所有</option>
                                                                <option value="all_to_me">分类1</option>
                                                                <option value="all_to_me">分类2</option>
                                                            </select>
                                                            <input type="button" value="删除" class="delete" />&nbsp;&nbsp;
                                                        </td>
                                                        <!-- Record Counts -->
                                                        <td nowrap="" class="small" style="padding-right: 20px;">
                                                        </td>
                                                        <!-- Page Navigation -->
                                                        <td nowrap="">
                                                            <table cellspacing="0" cellpadding="0" border="0" class="small">
                                                                <tbody>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <!-- List View's Buttons and Filters ends -->
                                            <div>
                                                <table width="100%" class="listview" cellpadding="3" cellspacing="1">
                                                    <tr>
                                                        <th width="1%">
                                                            <input type="checkbox" name="ListViewselectall" />
                                                        </th>
                                                        <th>
                                                            栏目序号
                                                        </th>
                                                        <th class="lvtCol">
                                                            父栏目序号
                                                        </th>
                                                        <th class="lvtCol">
                                                            栏目名称
                                                        </th>
                                                        <th class="lvtCol">
                                                            是否存在子栏目
                                                        </th>
                                                        <th class="lvtCol">
                                                            编辑 | 删除
                                                        </th>
                                                    </tr>
                                                    <tr id="dataTemp" style="display: none">
                                                        <td width="2%">
                                                            <input type="checkbox" value="3992" name="selected_id" />
                                                        </td>
                                                        <td id="ID">
                                                        </td>
                                                        <td align="center" id="ParentID">
                                                        </td>
                                                        <td align="center" id="Name">
                                                        </td>
                                                        <td align="center" id="IsParent">
                                                        </td>
                                                        <td align="center" width="2%">
                                                            编辑 |刪除
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div id="pager" style="text-align: right">
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            </form>
                        </div>
                    </td>
                    <td valign="top">
                        <img src="/Content/Images/showPanelTopRight.gif" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
